#include "Httpserver.hpp"
#include <iostream>
#include <memory>
#include <string>

int main(int argc,char* argv[])
{
  if(argc!=2)
  {
    std::cerr<<"正确用法"<<argv[0]<<"+"<<" port"<<std::endl;
    exit(4);
  }
  int port=atoi(argv[1]);
  std::shared_ptr<Httpserver> httpserver(new Httpserver(port));
  httpserver->Initserver();
  httpserver->Loop();

  return 0;
}
